<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDownloadCatTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('download_cat', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigIncrements('pid',10)->comment("父级分类");
            $table->string("title",100)->comment("分类名称");
            $table->tinyInteger("status",2)->default("1")->comment("是否显示，１正常２隐藏");
            $table->tinyInteger("is_delete",2)->default("1")->comment("是否删除１正常，２删除");
            $table->string("description",300)->comment("分类描述");
            $table->integer("psort",10)->comment("排序");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('download_cat');
    }
}
